import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home,
      mate: { title: '视频分段播放' }
    },
    {
      path: '/about',
      name: 'about',
      component: () => import(/* webpackChunkName: "about" */ './views/About.vue'),
      mate: { title: '录音采集（recorder）' }
    },
    {
      path: '/recorder',
      name: 'recorder',
      component: () => import(/* webpackChunkName: "about" */ './views/Recorder.vue'),
      mate: { title: '录音采集（js-audio-recorder）' }
    }
  ]
})
